package com.odontologia.bean;

import java.io.IOException;

import javax.annotation.PostConstruct;
import javax.faces.context.FacesContext;

public class indexBean {

	@PostConstruct
	public void myPostConstruct(){
		String renderKitId = FacesContext.getCurrentInstance().getViewRoot().getRenderKitId();
		if(renderKitId.equalsIgnoreCase("PRIMEFACES_MOBILE")){
			try {
				FacesContext.getCurrentInstance().getExternalContext().redirect("m/loginMovil.jsf");
			} catch (IOException e) {
				System.out.print(e.getMessage());
			}
		}
	}
	
}
